#!/bin/sh

if [ "$1" = "help" ]; then
    echo "*** Description ***" 
    echo "Control volume from command line using pamixer"
    echo ""
    echo "*** Usage ***"
    echo "volume <+|->"
    echo ""
    echo "*** Parameters ***"
    echo "+: Increases volume"
    echo "-: Decreases volume"
    echo ""
    echo "*** Options ***"
    echo ""
    exit 0
fi

if [ "$1" = "+" ]; then 
    pamixer -i 
elif [ "$1" = "-" ]; then 
    pamixer -d
else
    echo "Unknown option $1"
    echo "Valid options are '+' (increase), '-' (decrease)"
    exit 1
fi
